package com.logicbus.backend.message.tools;

import com.alogic.idnote.IdNote;
import com.alogic.idnote.IdNoteFactory;
import com.alogic.idnote.IdNoteGroup;
import com.anysoft.util.Properties;
import com.anysoft.util.PropertiesConstants;
import com.anysoft.util.Settings;

/**
 * IdNote工具
 */
public class IdNoteTool {
    private IdNoteGroup idnote = null;
    public IdNoteTool(Properties props){
        idnote = IdNoteFactory.get(PropertiesConstants.getString(Settings.get(), "servant.code.group", "servant.code"));
    }

    public IdNote getIdNote(String id){
        return idnote == null?null:idnote.getNote(id);
    }
}
